import ajax from '@/utils/request'
import { concatUrl } from '@/utils'

interface StaffInfo {
  mobile: string | number
}

interface StaffQRcode {
  staffCode: string | number
  storeCode: string
}


// 员工权限校验
export function staffInfo(data: StaffInfo, fields: string | object = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/user/vendor-user/staff-info', fields),
        data
    })
}

// 专属二维码
export function staffQRcode(data: StaffQRcode, fields: string | object = { fields: '*' }) {
    return ajax({
        url: concatUrl('/v1/user/vendor-user/staff-qrcode', fields),
        data
    })
}